package cn.lg.soar.system.auth.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author luguoxiang 469599794@qq.com
 * @Date: 2024/3/23 18:58
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "岗位名称")
public enum PostNameEnum implements IDict<Integer> {
    manager("经理", 0),
    general_manager("总经理", 1),
    sales_manager("销售经理", 2),
    product_manager("产品经理", 3),
    project_manager("项目经理", 4),
    ;

    PostNameEnum(String label, Integer value){
        this.label = label;
        this.value = value;
    }

    @JsonValue
    private final Integer value;
    private final String label;
    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return this.label;
    }
}
